package com.gopay.common.domain.bank.route.po;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

import com.gopay.common.domain.BaseEntity;

/**
 * 方案基础表
 * zhg.zhang 
 * 2016年9月30日 
 * www.gopay.com.cn Inc.All rights reserved.
 */

@Entity
@Table(name = "BIS_NORMAL_ROUTE_SOLUTION")
public class BankNormalRouteSolution extends BaseEntity{
	
	private static final long serialVersionUID = 6864691953023497740L;
	/**方案ID**/
	private Integer solutionId;
	/**方案名字**/
	private String solutionName;
	/**方案是否可用 0不可，1可用**/
	private Integer isEnable;
	/**方案是否删除 0删除，1未删除**/
	private Integer isDelete;
	/**版本**/
	private Integer version;
	/**创建时间**/
	private Date createdTs;
	/**最近修改时间**/
	private Date lastUpdTs;
	
	
	@Id
	@SequenceGenerator(name = "bisNormalRouteSolutionSeq", sequenceName = "bis_normal_route_solution_seq" ,allocationSize=1)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "bisNormalRouteSolutionSeq")
	@Column(name = "SOLUTION_ID", unique = true, nullable = false)
	public Integer getSolutionId() {
		return solutionId;
	}
	public void setSolutionId(Integer solutionId) {
		this.solutionId = solutionId;
	}
	
	@Column(name = "SOLUTION_NAME")
	public String getSolutionName() {
		return solutionName;
	}
	public void setSolutionName(String solutionName) {
		this.solutionName = solutionName;
	}
	
	@Column(name = "IS_ENABLE")
	public Integer getIsEnable() {
		return isEnable;
	}
	public void setIsEnable(Integer isEnable) {
		this.isEnable = isEnable;
	}
	
	@Column(name = "IS_DELETE")
	public Integer getIsDelete() {
		return isDelete;
	}
	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}
	
	@Version
	@Column(name = "VERSION")
	public Integer getVersion() {
		return version;
	}
	public void setVersion(Integer version) {
		this.version = version;
	}
	
	@Column(name = "CREATE_TS", nullable = false)
	@Temporal(TemporalType.TIMESTAMP)
	public Date getCreatedTs() {
		return createdTs;
	}
	public void setCreatedTs(Date createdTs) {
		this.createdTs = createdTs;
	}
	
	@Column(name = "LAST_UPD_TS", nullable = false)
	@Temporal(TemporalType.TIMESTAMP)
	public Date getLastUpdTs() {
		return lastUpdTs;
	}
	public void setLastUpdTs(Date lastUpdTs) {
		this.lastUpdTs = lastUpdTs;
	}
	
	
	
}
